package bobaini.com.dcl;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: liuyi
 * ClassName: Test
 * Version: 1.0.0
 * DateTime: 2021/03/31-10:36:00
 * Description: TODO
 */
@Slf4j
public class DclSingleModel {
    private static volatile DclSingleModel dclSingleModel;

    private DclSingleModel() {

    }

    public static DclSingleModel getSingleton() {
        if (dclSingleModel == null) {
            synchronized (DclSingleModel.class) {
                if (dclSingleModel == null) {
                    dclSingleModel = new DclSingleModel();
                }
            }
        }
        return dclSingleModel;
    }
}
